<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%String path = request.getContextPath();%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,target-densitydpi=high-dpi,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
	<title>微信签到系统-用户管理</title>
	<link rel="stylesheet" href="./css/bootstrap.css">
	<script src="./js/jquery.js"></script>
	<script src="./js/bootstrap.min.js"></script>
	<style>
		.control-group{
			margin-bottom:15px;
		}
		.table tr th,.table tr td{
			text-align: center;
		}
		.title h3{
			font-size:18px;
			margin:5px 0 5px 0;
			border-left:5px solid #eee;
			padding:3px 5px;
		}
		
	</style>
</head>
<body>

<nav class="navbar navbar-default navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
                 <button class="navbar-toggle" data-toggle="collapse" data-target="#navbarCollapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
                 </button>
                <a href="home" class="navbar-brand">微信签到系统</a>
          </div>
          <div class="collapse navbar-collapse" id="navbarCollapse">
			<ul class="nav navbar-nav" style="margin-top:0">
				<li class="active"><a href="teacher">教师管理</a></li>
          		<li><a href="teacher?method=class">班级管理</a></li>
			</ul>
			<!-- 
				<a href="#" class="navbar-text navbar-link">超链接</a>
			 -->
			 <p class="navbar-text navbar-right">
			 	${adminInfo.roleName }：<a href="#">${adminInfo.username }</a> | 
			 	<a href="adminManager?method=logout">退出</a>
			 </p>
		</div>
	</div>
</nav>

<div class="main container" style="margin-top:60px;">
	<ol class="breadcrumb">
		<li><a href="teacher?method=class">教师管理</a></li>
		<li class="active">修改信息[${teacherInfo.username }]</li>
	</ol>
	<div class="table-container table-responsive">
		<div class="col-md-4"></div>
			<div class="col-md-4 login" >
				<c:if test="${regError!=null }">
					<div class="alert alert-danger" style="margin:10px auto;">${regError }</div>
				</c:if>
				<form method="post" action="teacher?method=teacher-save" class="form-horizontal">
					<input type="hidden" value="${teacherInfo.pid}"  name="pid"/>
					<div class="control-group">
						 <label class="control-label" for="inputUsername">用户名</label>
						  <input id="inputUsername" class="form-control" type="text" 
						  value="${teacherInfo.username }"
						  name="username" placeholder="请输入英文或数字作为用户名"/>
					</div>
					<div class="control-group">
						 <label class="control-label" for="inputFullnamel">姓　　名</label>
						  <input id="inputFullnamel" class="form-control" type="text" 
						  value="${teacherInfo.fullname }"
						  name="fullname" placeholder="请填写真实姓名"/>
					</div>
					<div class="control-group">
						 <label class="control-label" for="inputPassword">密　码</label>
						 <input id="inputPassword" class="form-control"  type="text" 
						 value="${teacherInfo.passwd }"
						 name="passwd" placeholder="请填不小于6位数的密码"/>
					</div>
					<div class="control-group" style="text-align:center;">
					   <button type="submit" class="btn btn-info" style="margin-right:25px;">确认修改</button>
						<a href="teacher"  class="btn btn-primary">反回上级</a>
					</div>
				</form>
				</div>
				<div class="col-md-4"></div>
		</div>
	</div>
<script>

		
	
</script>

</body>
</html>